package org.dromara.system.domain.bo;

import org.dromara.system.domain.TDaAlarmDataTemp;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 报警信息表业务对象 t_da_alarm_data_temp
 *
 * @author Liu
 * @date 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TDaAlarmDataTemp.class, reverseConvertGenerate = false)
public class TDaAlarmDataTempBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ID;

    /**
     * 设备编码
     */
    @NotBlank(message = "设备编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String EquipCode;

    /**
     * 报警编码
     */
    @NotBlank(message = "报警编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String AlarmCode;

    /**
     * 报警信息
     */
    @NotBlank(message = "报警信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String AlarmText;

    /**
     * 报警时间
     */
    @NotNull(message = "报警时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date AlarmTime;

    /**
     * 清除时间
     */
    @NotNull(message = "清除时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date ClearTime;

    /**
     * 是否活跃{0否，1是}
     */
    @NotNull(message = "是否活跃{0否，1是}不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long Active;

    /**
     * 处理状态{0是未处理，98，99已处理}
     */
    @NotNull(message = "处理状态{0是未处理，98，99已处理}不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long DataStatus;

    /**
     * 最后存活时间
     */
    @NotNull(message = "最后存活时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date LastArchiveTime;

    /**
     * 工厂编码
     */
    @NotBlank(message = "工厂编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String PlantNO;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long DataFlag;


}
